<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>属性选择器3</title>
		<style type="text/css">
			img{
				width: 150px;
				height: 110px;
			}
			img[title~=cat]{
				border: 3px solid red;
			}
			
		</style>
	</head>
	<body>
		<img src="../img/animal.jpg" title="dog and cat"/>
		<img src="../img/cat1.jpg" title="cats"/>
		<img src="../img/dog.jpg" title="dogs" />
	</body>
</html>
